package com.sinosoft.tcmneim.service.impl;

import com.sinosoft.tcmneim.dao.TblDisecorolBasfationDao;
import com.sinosoft.tcmneim.dataObject.TblDisecorolBasfation;
import com.sinosoft.tcmneim.service.TblDisecorolBasfationService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TblDisecorolBasfationServiceImpl implements TblDisecorolBasfationService {
    @Resource
    private TblDisecorolBasfationDao tblDisecorolBasfationDao;

    @Override
    public List<TblDisecorolBasfation> list() {
        return tblDisecorolBasfationDao.list();
    }

    @Override
    public List<TblDisecorolBasfation> selectByItemCode(String itemCode) {
        return tblDisecorolBasfationDao.selectByItemCode(itemCode);
    }

    @Override
    public int insertSelective(TblDisecorolBasfation tblDisecorolBasfation) {
        return tblDisecorolBasfationDao.insert(tblDisecorolBasfation);
    }

    @Override
    public int updated(TblDisecorolBasfation tblDisecorolBasfation) {
        return tblDisecorolBasfationDao.updated(tblDisecorolBasfation);
    }

    @Override
    public int deleteByItemCode(String itemCode) {
        return tblDisecorolBasfationDao.deleteByItemCode(itemCode);
    }
}
